
.page-header {
  background-color: #3f51b5;
  color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.page-header h1 {
  margin: 0 0 10px 0;
  font-size: 24px;
}

.page-header p {
  margin: 0;
  opacity: 0.8;
}

.container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
  padding: 0 20px 20px 20px;
  box-sizing: border-box;
}

.blockly-wrapper {
  flex: 1;
  border: 1px solid #3f51b5;
  border-radius: 4px;
  margin-bottom: 20px;
  min-height: 500px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-container {
  background-color: #f0f2ff;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #c5cae9;
}

#blocklyCodeOutput {
  background-color: #fff;
  padding: 10px;
  border: 1px solid #c5cae9;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  background-color: #e0e0e0;
  color: #333;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #d0d0d0;
}

.btn.primary {
  background-color: #3f51b5;
  color: white;
}

.btn.primary:hover {
  background-color: #303f9f;
}

/* Variable Modal Styles */
.variable-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.show-modal {
  display: block;
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 5px;
  width: 60%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.modal-header h2 {
  margin: 0;
  color: #3f51b5;
}

.close-button {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.close-button:hover {
  color: #333;
}

.search-container {
  margin-bottom: 15px;
}

.search-container input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c5cae9;
  border-radius: 4px;
  box-sizing: border-box;
}

.variable-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.variable-item {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.variable-item:hover {
  background-color: #f0f2ff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.save-btn {
  background-color: #3f51b5;
  color: white;
}